package Client;

import java.io.BufferedReader;
import java.io.PrintWriter;
import java.net.ServerSocket;
import java.net.Socket;

import Serveur.CommunicationVersClient;

public class ConnexionToClient {
	
	
 	private String m_adrAttente;
 	private int m_portAttente;
 	
 	private ServerSocket socketAttente; 
 	private Socket socketHote;
 	
 	
 	//le constructeur
 	public ConnexionToClient(){
 		m_adrAttente = "localhost";
 		m_portAttente = 7888;
 		try{
			socketAttente = new ServerSocket( m_portAttente); //initialisation de socket	
			while(true)
			{
				Socket sockHote = socketAttente.accept();
				//Conversation ChatHote = new Conversation (sockHote);
				//ChatHote.start();	
			}			
	}catch(Exception e){
		        System.out.println("Erreur de connexion Chat with Hote");
	        }
 	}
 	
 	
}// fin de la classe
